"use client"
import {ThemeProvider} from 'next-themes'
import React, {createContext} from "react";
import {NextUIProvider} from "@nextui-org/system";
import {createStore} from 'zustand'
import userStore from "@/store/userStore";

const store = createStore() // vanilla store without hooks

const StoreContext = createContext(userStore)
export default function Providers({
                                      children,
                                  }: {
    children: React.ReactNode
}) {
    return (
        <NextUIProvider>
            <ThemeProvider attribute="class" enableSystem={false} defaultTheme={'light'}>
                {children}
            </ThemeProvider>
        </NextUIProvider>
    )
}
